﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography;

namespace Aliyeye.Car.Net.Utility
{
    public static class StringHelper
    {
        public static string GetMD5Str(string str)
        {
            MD5 md5 = new MD5CryptoServiceProvider();
            byte[] byteArray = md5.ComputeHash(Encoding.UTF8.GetBytes(str));
            return Convert.ToBase64String(byteArray);
        }
    }
}
